<template>
	<div class="category">
		<h3>游戏列表</h3>
		<slot a="你好" b="尚硅谷" c="100" :youxis="games">我是插槽里默认的内容</slot>
	</div>
</template>

<script>
	export default {
		name:'Category',
		props:['title'],
		data() {
			return {
				games:['王者农药','绝地求生','红色警戒','超级玛丽'],
			}
		},
	}
</script>

<style scoped>
	.category{
		width: 200px;
		height: 300px;
		background-color: skyblue;
	}
	h3{
		background-color: orange;
		text-align: center;
	}
	img,video{
		width: 100%;
	}
	a{
		margin-left: 10px;
	}
</style>